Skip to content

Lingua: strip </mm:think> reasoning blocks from gateway answers - #133

Merged
juwpegatron merged 1 commit into
mainfrom
agent/lingua-think-tags
Nov 24, 2026
Merged

juwpegatron merged 1 commit into
mainfrom
agent/lingua-think-tags

Conversation

@juwpegatron

Copy link
Copy Markdown
Collaborator

Found while testing the 2.3.2 Windows build against the real company gateway on the ASUS (24 Nov): Lingua.exe --translate-text ... --to zh-TW printed the model's whole reasoning, because MiniMax-M3 opens with <think> and closes with </mm:think>, which THINK_RE did not match.

  • text_desk: THINK_RE matches namespaced/mismatched tags; the warning uses the same pattern.
  • maas._clean and lingua-core.js clean(): strip the same blocks (captions, pictures, Share to phone), defensive: the meeting/document prompts came back clean in today's test.
  • sw.js cache v7 so the web edition picks up lingua-core.js.

Tests: 138 passed, 1 failed (test_dead_models_skipped_next_time, fails on main too). New cases in test_text_desk and test_maas; clean() checked in node.

…m:think> (MiniMax-M3 on the company gateway showed its thinking in the Text desk); sw cache v7
@juwpegatron
juwpegatron merged commit 95f8b45 into main Nov 24, 2026
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant